package com.example.opengldemo._111_;

import android.view.View;

import java.util.ArrayList;
import java.util.List;

public class TreeGroup {
    TreeForDraw tfd;
    List<TreeSingle> alist = new ArrayList<TreeSingle>();

    public TreeGroup(View view) {
        this.tfd = new TreeForDraw(view);
        alist.add(new TreeSingle(-1f, 0, 0, this));
        alist.add(new TreeSingle(1f, 0, 0, this));
        alist.add(new TreeSingle(0, 1f, 0, this));
    }

    public void calculateBillboardDirection() {
        for (int i = 0; i < alist.size(); i++)
            alist.get(i).calculateBillboardDirection();
    }

    public void drawSelf(int texId) {
        for (int i = 0; i < alist.size(); i++)
            alist.get(i).drawSelf(texId);
    }
}
